const getters = {
  sidebar: state => state.app.sidebar,//获取模块属性
  device: state => state.app.device,

  token: state => state.user.token,//获取user模块的属性
  avatar: state => state.user.userInfo.avatar,//用户头像地址
  nickName: state => state.user.userInfo.nickName,//用户昵称
  userId: state => state.user.userInfo.userId,//获取用户id

  routes:state => state.user.routes,//快捷获取权限路由
}
// getters便捷访问，减少了层级，便捷访问的功能
export default getters
